/ Developer CD Series 2000 November: Tool Chest
/ Dev.CD Nov 00 TC Disk 2.toast / mac / Sample Code / QuickTime / QuickTimeIntro / Movie From DataRef / Clippings / CreateMovie.c / AsyncMovieLoading.clp ![]() | next > |
MacBinary | 2000-10-06 | 2.1 KB | [clpt/drag] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | TRS-80 CLP File (image/trs80Clp) | ext | Supported |
66% | dexvert | PC Paint Image (image/pcPaint) | ext | Supported |
66% | dexvert | Windows Clipboard (image/windowsClipboard) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Quattro Pro Clip Art (image/quattroProClipArt) | ext | Unsupported |
1% | dexvert | Home Plan Pro 5 Clip (other/homePlanPro5Clip) | ext | Unsupported |
100% | file | MacBinary II, inited, Mon May 8 18:11:08 2000, modified Fri Oct 6 15:37:01 2000, creator 'drag', type 'clpt' "AsyncMovieLoading.clp", at 0x80 1944 bytes resource Apple HFS/HFS+ resource fork, map offset 0x752, map length 0x46, data length 0x652, nextResourceMap 0x7ac3e40, fileRef 0x272, list offset 0x1c, name offset 0x46, 2 types, 0x54455854 'TEXT' * 1 resource offset 0x12 | default (weak) | |
99% | file | data | default | |
74% | TrID | Mac Text clippings (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [clpt] |
macFileCreator | [drag] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 41 73 79 6e 63 4d | 6f 76 69 65 4c 6f 61 64 |..AsyncM|ovieLoad|
|00000010| 69 6e 67 2e 63 6c 70 00 | 00 00 00 00 00 00 00 00 |ing.clp.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 74 64 72 61 | 67 01 00 00 00 00 00 00 |.clptdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 07 98 b5 3c eb fc b6 |........|....<...|
|00000060| 03 da 5d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..].....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b1 1b 00 00 |........|........|
|00000080| 00 00 01 00 00 00 07 52 | 00 00 06 52 00 00 00 46 |.......R|...R...F|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 06 2a 09 09 2f 2f | 20 48 61 6e 64 6c 65 20 |...*..//| Handle |
|00000190| 61 73 79 6e 63 68 72 6f | 6e 6f 75 73 20 6d 6f 76 |asynchro|nous mov|
|000001a0| 69 65 20 6c 6f 61 64 69 | 6e 67 20 68 65 72 65 2e |ie loadi|ng here.|
|000001b0| 20 57 65 20 75 73 65 20 | 74 68 65 20 6e 65 77 0d | We use |the new.|
|000001c0| 09 09 2f 2f 20 47 65 74 | 4d 6f 76 69 65 4c 6f 61 |..// Get|MovieLoa|
|000001d0| 64 53 74 61 74 65 20 66 | 75 6e 63 74 69 6f 6e 20 |dState f|unction |
|000001e0| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the|
|000001f0| 20 6c 6f 61 64 20 73 74 | 61 74 65 0d 09 09 2f 2f | load st|ate...//|
|00000200| 20 6f 66 20 74 68 65 20 | 6d 6f 76 69 65 2e 0d 09 | of the |movie...|
|00000210| 09 64 6f 0d 09 09 7b 0d | 09 09 09 6c 6f 6e 67 20 |.do...{.|...long |
|00000220| 6e 65 77 4c 6f 61 64 53 | 74 61 74 65 3b 0d 09 09 |newLoadS|tate;...|
|00000230| 09 0d 09 09 09 2f 2f 20 | 47 65 74 20 6e 65 77 20 |.....// |Get new |
|00000240| 6c 6f 61 64 20 73 74 61 | 74 65 20 74 6f 20 73 65 |load sta|te to se|
|00000250| 65 20 69 66 20 74 68 65 | 72 65 20 77 61 73 20 61 |e if the|re was a|
|00000260| 20 63 68 61 6e 67 65 20 | 69 6e 0d 09 09 09 2f 2f | change |in....//|
|00000270| 20 73 74 61 74 65 2e 0d | 09 09 09 6e 65 77 4c 6f | state..|...newLo|
|00000280| 61 64 53 74 61 74 65 20 | 3d 20 47 65 74 4d 6f 76 |adState |= GetMov|
|00000290| 69 65 4c 6f 61 64 53 74 | 61 74 65 28 74 68 65 4d |ieLoadSt|ate(theM|
|000002a0| 6f 76 69 65 29 3b 0d 09 | 09 09 69 66 20 28 6e 65 |ovie);..|..if (ne|
|000002b0| 77 4c 6f 61 64 53 74 61 | 74 65 20 21 3d 20 6c 6f |wLoadSta|te != lo|
|000002c0| 61 64 53 74 61 74 65 29 | 0d 09 09 09 7b 0d 09 09 |adState)|....{...|
|000002d0| 09 09 6c 6f 61 64 53 74 | 61 74 65 20 3d 20 6e 65 |..loadSt|ate = ne|
|000002e0| 77 4c 6f 61 64 53 74 61 | 74 65 3b 0d 09 09 09 09 |wLoadSta|te;.....|
|000002f0| 69 66 20 28 6c 6f 61 64 | 53 74 61 74 65 20 3c 20 |if (load|State < |
|00000300| 30 29 0d 09 09 09 09 7b | 0d 09 09 09 09 09 2f 2f |0).....{|......//|
|00000310| 20 66 61 69 6c 65 64 20 | 74 6f 20 6c 6f 61 64 20 | failed |to load |
|00000320| 74 68 65 20 6d 6f 76 69 | 65 20 2d 20 74 68 69 73 |the movi|e - this|
|00000330| 20 77 69 6c 6c 20 63 61 | 75 73 65 0d 09 09 09 09 | will ca|use.....|
|00000340| 09 2f 2f 20 75 73 20 74 | 6f 20 64 72 6f 70 20 6f |.// us t|o drop o|
|00000350| 75 74 20 6f 66 20 74 68 | 69 73 20 6c 6f 6f 70 20 |ut of th|is loop |
|00000360| 61 6e 64 20 72 65 70 6f | 72 74 20 61 6e 0d 09 09 |and repo|rt an...|
|00000370| 09 09 09 2f 2f 20 65 72 | 72 6f 72 0d 09 09 09 09 |...// er|ror.....|
|00000380| 7d 0d 09 09 09 09 0d 09 | 09 09 09 69 66 20 28 6c |}.......|...if (l|
|00000390| 6f 61 64 53 74 61 74 65 | 20 3c 20 6b 4d 6f 76 69 |oadState| < kMovi|
|000003a0| 65 4c 6f 61 64 53 74 61 | 74 65 50 6c 61 79 61 62 |eLoadSta|tePlayab|
|000003b0| 6c 65 29 0d 09 09 09 09 | 7b 0d 09 09 09 09 09 2f |le).....|{....../|
|000003c0| 2f 20 77 65 20 6e 65 65 | 64 20 74 6f 20 6b 65 65 |/ we nee|d to kee|
|000003d0| 70 20 74 61 73 6b 69 6e | 67 20 74 68 65 20 6d 6f |p taskin|g the mo|
|000003e0| 76 69 65 20 73 6f 20 69 | 74 20 67 65 74 73 0d 09 |vie so i|t gets..|
|000003f0| 09 09 09 09 2f 2f 20 74 | 69 6d 65 20 74 6f 20 6c |....// t|ime to l|
|00000400| 6f 61 64 0d 09 09 09 09 | 09 0d 09 09 09 09 09 4d |oad.....|.......M|
|00000410| 6f 76 69 65 73 54 61 73 | 6b 28 74 68 65 4d 6f 76 |oviesTas|k(theMov|
|00000420| 69 65 2c 20 30 29 3b 0d | 09 09 09 09 7d 0d 09 09 |ie, 0);.|....}...|
|00000430| 09 09 0d 09 09 09 09 69 | 66 20 28 6c 6f 61 64 53 |.......i|f (loadS|
|00000440| 74 61 74 65 20 3c 20 6b | 4d 6f 76 69 65 4c 6f 61 |tate < k|MovieLoa|
|00000450| 64 53 74 61 74 65 43 6f | 6d 70 6c 65 74 65 29 0d |dStateCo|mplete).|
|00000460| 09 09 09 09 7b 0d 09 09 | 09 09 09 2f 2f 20 77 65 |....{...|...// we|
|00000470| 20 6a 75 73 74 20 62 65 | 63 61 6d 65 20 70 6c 61 | just be|came pla|
|00000480| 79 61 62 6c 65 0d 09 09 | 09 09 7d 0d 09 09 09 09 |yable...|..}.....|
|00000490| 0d 09 09 09 09 69 66 20 | 28 6c 6f 61 64 53 74 61 |.....if |(loadSta|
|000004a0| 74 65 20 3e 3d 20 6b 4d | 6f 76 69 65 4c 6f 61 64 |te >= kM|ovieLoad|
|000004b0| 53 74 61 74 65 43 6f 6d | 70 6c 65 74 65 29 0d 09 |StateCom|plete)..|
|000004c0| 09 09 09 7b 0d 09 09 09 | 09 09 2f 2f 20 6e 6f 77 |...{....|..// now|
|000004d0| 20 77 65 20 6b 6e 6f 77 | 20 61 6c 6c 20 6d 65 64 | we know| all med|
|000004e0| 69 61 20 64 61 74 61 20 | 69 73 20 61 76 61 69 6c |ia data |is avail|
|000004f0| 61 62 6c 65 0d 09 09 09 | 09 09 2f 2f 20 74 68 69 |able....|..// thi|
|00000500| 73 20 77 69 6c 6c 20 64 | 72 6f 70 20 75 73 20 6f |s will d|rop us o|
|00000510| 75 74 20 6f 66 20 74 68 | 69 73 20 6c 6f 6f 70 20 |ut of th|is loop |
|00000520| 73 6f 20 77 65 0d 09 09 | 09 09 09 2f 2f 20 63 61 |so we...|...// ca|
|00000530| 6e 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 6d 6f |n displa|y the mo|
|00000540| 76 69 65 0d 09 09 09 09 | 7d 0d 09 09 09 7d 0d 09 |vie.....|}....}..|
|00000550| 09 7d 20 0d 09 09 77 68 | 69 6c 65 20 28 28 6c 6f |.} ...wh|ile ((lo|
|00000560| 61 64 53 74 61 74 65 20 | 3e 20 6b 4d 6f 76 69 65 |adState |> kMovie|
|00000570| 4c 6f 61 64 53 74 61 74 | 65 45 72 72 6f 72 29 20 |LoadStat|eError) |
|00000580| 26 26 20 28 6c 6f 61 64 | 53 74 61 74 65 20 3c 20 |&& (load|State < |
|00000590| 6b 4d 6f 76 69 65 4c 6f | 61 64 53 74 61 74 65 43 |kMovieLo|adStateC|
|000005a0| 6f 6d 70 6c 65 74 65 29 | 29 3b 0d 09 09 0d 09 09 |omplete)|);......|
|000005b0| 43 68 65 63 6b 45 72 72 | 6f 72 28 65 72 72 2c 20 |CheckErr|or(err, |
|000005c0| 22 4e 65 77 4d 6f 76 69 | 65 46 72 6f 6d 44 61 74 |"NewMovi|eFromDat|
|000005d0| 61 52 65 66 20 65 72 72 | 6f 72 22 29 3b 0d 09 09 |aRef err|or");...|
|000005e0| 0d 09 09 2f 2f 20 64 69 | 73 70 6f 73 65 20 6f 66 |...// di|spose of|
|000005f0| 20 6f 75 72 20 64 61 74 | 61 20 72 65 66 65 72 65 | our dat|a refere|
|00000600| 6e 63 65 20 68 61 6e 64 | 6c 65 20 73 69 6e 63 65 |nce hand|le since|
|00000610| 20 69 74 20 69 73 20 6e | 6f 20 6c 6f 6e 67 65 72 | it is n|o longer|
|00000620| 20 6e 65 65 64 65 64 0d | 09 09 44 69 73 70 6f 73 | needed.|..Dispos|
|00000630| 65 48 61 6e 64 6c 65 28 | 64 61 74 61 52 65 66 29 |eHandle(|dataRef)|
|00000640| 3b 0d 09 09 0d 09 09 72 | 65 73 75 6c 74 20 3d 20 |;......r|esult = |
|00000650| 47 65 74 4d 6f 76 69 65 | 53 74 61 74 75 73 20 28 |GetMovie|Status (|
|00000660| 74 68 65 4d 6f 76 69 65 | 2c 20 26 66 69 72 73 74 |theMovie|, &first|
|00000670| 50 72 6f 62 6c 65 6d 54 | 72 61 63 6b 29 3b 0d 09 |ProblemT|rack);..|
|00000680| 09 0d 09 09 2f 2f 20 69 | 66 20 47 65 74 4d 6f 76 |....// i|f GetMov|
|00000690| 69 65 4c 6f 61 64 53 74 | 61 74 65 20 66 72 6f 6d |ieLoadSt|ate from|
|000006a0| 20 61 62 6f 76 65 20 72 | 65 74 75 72 6e 65 64 20 | above r|eturned |
|000006b0| 6b 4d 6f 76 69 65 4c 6f | 61 64 53 74 61 74 65 45 |kMovieLo|adStateE|
|000006c0| 72 72 6f 72 2c 20 61 6e | 64 0d 09 09 2f 2f 20 47 |rror, an|d...// G|
|000006d0| 65 74 4d 6f 76 69 65 53 | 74 61 74 75 73 20 72 65 |etMovieS|tatus re|
|000006e0| 74 75 72 6e 73 20 6e 69 | 6c 20 66 6f 72 20 74 68 |turns ni|l for th|
|000006f0| 65 20 66 69 72 73 74 50 | 72 6f 62 6c 65 6d 54 72 |e firstP|roblemTr|
|00000700| 61 63 6b 20 70 61 72 61 | 6d 65 74 65 72 20 77 65 |ack para|meter we|
|00000710| 0d 09 09 2f 2f 20 6b 6e | 6f 77 20 61 6e 20 65 72 |...// kn|ow an er|
|00000720| 72 6f 72 20 6f 63 63 75 | 72 72 65 64 0d 09 09 69 |ror occu|rred...i|
|00000730| 66 20 28 28 6c 6f 61 64 | 53 74 61 74 65 20 3d 3d |f ((load|State ==|
|00000740| 20 6b 4d 6f 76 69 65 4c | 6f 61 64 53 74 61 74 65 | kMovieL|oadState|
|00000750| 45 72 72 6f 72 29 20 26 | 26 20 28 66 69 72 73 74 |Error) &|& (first|
|00000760| 50 72 6f 62 6c 65 6d 54 | 72 61 63 6b 20 3d 3d 20 |ProblemT|rack == |
|00000770| 6e 69 6c 29 29 0d 09 09 | 7b 0d 09 09 09 43 68 65 |nil))...|{....Che|
|00000780| 63 6b 45 72 72 6f 72 28 | 2d 31 2c 20 22 4e 65 77 |ckError(|-1, "New|
|00000790| 4d 6f 76 69 65 46 72 6f | 6d 44 61 74 61 52 65 66 |MovieFro|mDataRef|
|000007a0| 20 65 72 72 6f 72 22 29 | 3b 0d 09 09 7d 0d 00 00 | error")|;...}...|
|000007b0| 00 20 00 00 00 01 00 00 | 00 04 00 00 00 00 00 00 |. ......|........|
|000007c0| 00 01 54 45 58 54 00 00 | 01 00 00 00 00 00 00 00 |..TEXT..|........|
|000007d0| 00 00 00 00 01 00 00 00 | 07 52 00 00 06 52 00 00 |........|.R...R..|
|000007e0| 00 46 07 ac 3e 40 02 72 | 00 00 00 1c 00 46 00 01 |.F..>@.r|.....F..|
|000007f0| 54 45 58 54 00 00 00 12 | 64 72 61 67 00 00 00 1e |TEXT....|drag....|
|00000800| 01 00 ff ff 00 00 00 00 | 00 9f 8a 94 00 80 ff ff |........|........|
|00000810| 00 00 06 2e 00 9f 8a 7c | 00 00 00 00 00 00 00 00 |.......||........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+